]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overviewControls: Remove superfluous max()
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 22 Feb 2021 12:10:02 +0000 (13:10 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Mon, 22 Feb 2021 12:10:02 +0000 (13:10 +0100)
We don't need to call Math.max() to figure out the maximum of a
single value :-)

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1709>

js/ui/overviewControls.js

index 673a596fbcad167625049cb1ac94ef1203d25fc5..7de141e0cbc94ef2ae8142474ff7a8acab47b2e0 100644 (file)
@@ -66,7 +66,7 @@ class ControlsManagerLayout extends Clutter.BoxLayout {
             workspaceBox.set_origin(0, searchHeight + spacing);
             workspaceBox.set_size(
                 width,
-                Math.round(Math.max(height * SMALL_WORKSPACE_RATIO)));
+                Math.round(height * SMALL_WORKSPACE_RATIO));
             break;
         }